#!/bin/bash

# run one/many
for arg in "$@"
do
  if [[ $arg == 1 ]]; then
    nohup bee start --config cfg/bee1.yaml > log/bee1.log 2>&1 &
  elif [[ $arg == 2 ]]; then
    nohup bee start --config cfg/bee2.yaml > log/bee2.log 2>&1 &
  else
    echo unkown arg: $arg
  fi
done
